/**
 * 平滑处理图表数据防止纬度差异过大导致纬度较小的失真
 * @param array
 */
export const normalize = (array: number[]) => {
  const max = Math.max(...array);
  const min = Math.min(...array);

  return array.map((value) => (value - min) / (max - min));
};

export * from "./Lines";
